﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPgAdmin.master" AutoEventWireup="true" CodeFile="ViewUser.aspx.cs" Inherits="Admin_ViewUser" %>
<%@ Register assembly="AjaxControlToolkit" 
             namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register assembly="ProudMonkey.Common.Controls"
             namespace="ProudMonkey.Common.Controls" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Header1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <%--<div style="background-image:url('../Images/body-bg.png');direction:rtl;padding-bottom:20px;padding-top:10px;border:1px solid #ccc;box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;border-radius: 4px;">
        <div style="padding-right:350px; width:100%">
        <asp:Image ID="Image2" runat="server" 
                        ImageUrl="~/Images/ManageUsers.png" Width="17%"  />
        </div>
     
      
        <div style="width:90%;margin:auto; background-image:url('../Images/content-bg.png');padding-right:8px;border:1px solid #ccc;box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;border-radius: 4px;">
          <div style="margin-bottom:30px;padding-top:30px;padding-right:20%">
            <asp:RadioButtonList ID="RdRoles" runat="server" AutoPostBack="True" 
                        CellSpacing="5" Font-Size="13pt" ForeColor="#66CCFF" 
                        onselectedindexchanged="RadioButtonList1_SelectedIndexChanged" 
                        RepeatDirection="Horizontal" style="margin-right: 28px" Width="539px" 
                        BorderColor="#99CCFF" BorderStyle="Groove" BackColor="#003366">
                        <asp:ListItem Value="MExpert">مدیریت کارشناسان</asp:ListItem>
                        <asp:ListItem Value="Fin">مدیریت مالی و انبار</asp:ListItem>
                        <asp:ListItem Value="Secr">منشی</asp:ListItem>
                    </asp:RadioButtonList>
                    <asp:Label ID="LblRadio" runat="server" BackColor="#FF3300" Font-Size="Small" 
                        ForeColor="#CCFFCC" Visible="False" Width="40%"></asp:Label>
          </div>
          <div>
            
          <table style="width: 100%" >
        <tr>
            <td align="right">
                  
            </td>
            <td>
              <cc1:confirmbox ID="confirm1" runat="server" />
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Panel ID="PnEdit" runat="server" Visible="false">
                  <div style="border: 1px solid #DEDEDE;border-radius:3px;box-shadow: 0px 0px 10px rgba(189, 189, 189, 0.4);padding :10px;width:90%;margin:auto;">
                <div  class="headerTable" >
                <div style="width:10%;float:right">
                    <asp:Image ID="Image1" runat="server" src="../Images/ava_default_1.jpg" Height="40px" />
                </div>
                <div style="width:50%;float:right">
                    <h3><asp:Label ID="Label10" runat="server" Text="فعال کردن کاربران غیر فعال شده"></asp:Label></h3>
                </div>
                
                
                </div>
                <div>
                    <asp:GridView ID="GrdListUser" runat="server" 
    BackColor="#999966" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
    CellPadding="3" AutoGenerateColumns="False" DataKeyNames="UserId" 
                        onrowcommand="GrdListUser_RowCommand1" Width="100%">
             <Columns>
                <asp:BoundField DataField="UserId" Visible="False" />
                <asp:BoundField DataField="موبایل" HeaderText="شماره موبایل" />
                <asp:BoundField DataField="شماره تلفن" HeaderText="شماره تلفن" />
                <asp:BoundField DataField="آدرس" HeaderText="آدرس" />
                <asp:BoundField DataField="نام خانوادگی" HeaderText="نام خانوادگی" />
                <asp:BoundField DataField="username" HeaderText="نام کاربری" />
                <asp:BoundField DataField="نام" HeaderText="نام" />
                <asp:ButtonField CommandName="Chg" Text="تغییر وضعیت" />
                <asp:TemplateField>
                <ItemTemplate>
                    <asp:Button ID="Button1" runat="server" Text="فعال" CommandName="Chg"  CommandArgument="<%# ((GridViewRow) Container).RowIndex %>"
                 OnClientClick="ShowConfirmBox(this,'آیا از فعال کردن کارشناس مطمینید'); return false;"  />
                </ItemTemplate>
                </asp:TemplateField>
                
            </Columns>
            <FooterStyle BackColor="White" ForeColor="#000066" />
            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
            <RowStyle ForeColor="#000066" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#007DBB" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#00547E" />
        </asp:GridView>
                    </div>
                    <div>   
                    <asp:Label ID="Lblsta1" runat="server" BackColor="#FF3300" BorderColor="Yellow" 
                        ForeColor="Yellow"></asp:Label>
                     </div> 
                     </div>     
                </asp:Panel>
            </td>
        </tr>
    </table>
          </div>
          </div>
          </div>--%>
    



    <div style="background-image:url('../Images/body-bg.png');direction:rtl;padding-bottom:20px;padding-top:10px;border:1px solid #ccc;box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;border-radius: 4px;">
        <div style="padding-right:350px; width:100%">
        <asp:Image ID="Image2" runat="server" 
                        ImageUrl="~/Images/ManageUsers.png" Width="17%"  />
        </div>
     
      
        <div style="width:90%;margin:auto; background-image:url('../Images/content-bg.png');padding-right:8px;border:1px solid #ccc;box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;border-radius: 4px;">
          <div style="margin-bottom:30px;padding-top:30px;padding-right:15%">
            <asp:RadioButtonList ID="RdRoles" runat="server" AutoPostBack="True" 
                        CellSpacing="5" Font-Size="13pt" ForeColor="#66CCFF" 
                        onselectedindexchanged="RadioButtonList1_SelectedIndexChanged" 
                        RepeatDirection="Horizontal" style="margin-right: 28px" Width="539px" 
                        BorderColor="#99CCFF" BorderStyle="Groove" BackColor="#003366">
                        <asp:ListItem Value="MExpert">مدیریت کارشناسان</asp:ListItem>
                        <asp:ListItem Value="Fin">مدیریت مالی و انبار</asp:ListItem>
                        <asp:ListItem Value="Secr">منشی</asp:ListItem>
                    </asp:RadioButtonList>
                    <asp:Label ID="Label1" runat="server" BackColor="#FF3300" Font-Size="Small" 
                        ForeColor="#CCFFCC" Visible="False" Width="40%"></asp:Label>
          </div>
          <div>
    <table style="width: 100%">
        <tr>
            <td align="right">
                    
                    <asp:Label ID="LblRadio" runat="server" BackColor="#FF3300" Font-Size="Small" 
                        ForeColor="#CCFFCC" Visible="False" Width="40%"></asp:Label>
            </td>
            <td>
              <cc1:confirmbox ID="confirm1" runat="server" />
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Panel ID="PnEdit" runat="server">
                    <asp:GridView ID="GrdListUser" runat="server" 
    BackColor="#999966" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
    CellPadding="3" AutoGenerateColumns="False" DataKeyNames="UserId" 
                        onrowcommand="GrdListUser_RowCommand1" Width="100%" GridLines="None" ForeColor="#333333" >
                          <AlternatingRowStyle BackColor="White"   />
             <Columns>
                <asp:BoundField DataField="UserId" Visible="False" />
                <asp:BoundField DataField="نام" HeaderText="نام" />
                 <asp:BoundField DataField="نام خانوادگی" HeaderText="نام خانوادگی" />
                <asp:BoundField DataField="موبایل" HeaderText="شماره موبایل" />
                <asp:BoundField DataField="شماره تلفن" HeaderText="شماره تلفن" />
                
               
                <asp:BoundField DataField="username" HeaderText="نام کاربری" />
                <asp:BoundField DataField="آدرس" HeaderText="آدرس" />
                <asp:ButtonField CommandName="Chg" Text="تغییر وضعیت" />
                <asp:TemplateField>
                <ItemTemplate>
                    <asp:Button ID="Button1" runat="server" Text="فعال" CommandName="Chg"  CommandArgument="<%# ((GridViewRow) Container).RowIndex %>"
                 OnClientClick="ShowConfirmBox(this,'آیا از فعال کردن کارشناس مطمینید'); return false;" CssClass="Button"  />
                </ItemTemplate>
                </asp:TemplateField>
                
            </Columns>


                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
                         
                    <asp:Label ID="Lblsta1" runat="server" BackColor="#FF3300" BorderColor="Yellow" 
                        ForeColor="Yellow"></asp:Label>
                         
                </asp:Panel>
            </td>
        </tr>
    </table>
    </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Header" Runat="Server">
</asp:Content>

